package com.homegoods.designer.ui.activity;

import android.os.Bundle;
import android.text.TextUtils;
import android.view.View;

import com.alibaba.android.arouter.facade.annotation.Route;
import com.homegoods.designer.R;
import com.homegoods.designer.databinding.DesignerActivityEditDesignerIntroBinding;
import com.homegoods.aroutercomment.ARouterPath;
import com.kedll.library.base.MyBaseFragmentActivity;
import com.kedll.library.mvp.BasePresenter;
import com.kedll.library.util.ToastUtil;

/**
 * @author QiQi
 * @description 编辑简介
 */
@Route(path = ARouterPath.PATH_EDIT_INTRO)
public class EditDesignerIntroActivity extends MyBaseFragmentActivity<DesignerActivityEditDesignerIntroBinding, BasePresenter> {

    @Override
    public int getLayout() {
        return R.layout.designer_activity_edit_designer_intro;
    }

    @Override
    protected void initEvent() {

    }

    @Override
    protected void initToolBar(Bundle savedInstanceState) {
        super.initToolBar(savedInstanceState);
        setTitle("简介");
    }

    @Override
    protected BasePresenter getPresenter() {
        return null;
    }

    public void onConfirmClick(View view) {
        String intro = mBinding.etIntro.getText().toString();
        if (TextUtils.isEmpty(intro)) {
            ToastUtil.showSnackbar(view, "请输入简介内容");
            return;
        }
    }

}
